package com.yanlight.app.request;

import com.yanlight.app.response.WxCertResponse;
import com.yanlight.support.http.AbstractRequest;
import com.yanlight.support.http.RequestBuilder;
import com.yanlight.support.wx.WxConstants;
import com.yanlight.support.wx.model.WxCertSign;

import java.util.SortedMap;

public class WxCertRequest extends AbstractRequest<WxCertResponse> {

    private String tradeUrl = WxConstants.WX_MICRO_CERT;

    private SortedMap<String, String> paramsMap;


    public WxCertRequest(SortedMap<String, String> paramsMap){
        this.paramsMap = paramsMap;
    }

    @Override
    protected void execute(RequestBuilder builder) {
        builder.addParams(paramsMap);
        builder.post().contentXML().dataXML().setUrl(tradeUrl);
    }
}
